Running scripts (uv Guides)
A Python script is a file intended for standalone execution, e.g., with python <script>.py.
Running a script without dependencies
Running a script with dependencies
uv run --with
Declaring script dependencies
uv add --script <script> ...:自動で書いてくれる!
Improving reproducibility
inline script metadataの拡張
uv supports an exclude-newer field in the tool.uv section of inline script metadata to limit uv to only considering distributions released before a specific date.
Using different Python versions
uv run --python
Using GUI scripts
積ん読